package com.lfs.admin.dao;

import com.lfs.admin.model.entity.product.ProductInfoEntity;
import com.lfs.admin.model.vo.product.ProductInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductInfoDao {

    List<ProductInfoEntity> queryProductList(ProductInfoVO productInfoVo);

    List<ProductInfoEntity> getProductList();

    List<ProductInfoEntity> getProductToGroupList(@Param("groupNum") String groupNum);

    List<ProductInfoEntity> getProductToChannelList(@Param("channelNum") String channelNum);

    ProductInfoEntity getProductByCode(@Param("productCode") Long productCode);

    ProductInfoEntity getProductById(@Param("id") Integer id);

    int updateProductInfo(ProductInfoVO productInfoVo);

    int updateProductStatus(ProductInfoVO productInfoVo);

    int addProductInfo(ProductInfoVO productInfoVo);

    int deleteProductInfo(Integer[] ids);

}
